﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Gnosis.Alexandria.Controllers;


namespace Gnosis.Alexandria.Views
{
    public partial class MainView : ViewFormBase
    {
        public MainView()
        {
            InitializeComponent();
        }

        protected override void HandleMessage(IMessageOld message)
        {
            switch (message.Type)
            {
                case MessageTypes.RequestMainTabViewLoad:
                    {
                        var control = (Control)message.Body;
                        //SetControlAnchorAll(control);
                        control.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
                        pnlTabs.Controls.Add(control);
                        break;
                    }
                default:
                    break;
            }
        }
    }
}
